Package | hl7.fhir.uv.xver |
Type | StructureMap |
Id | Id |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-DataRequirement3to4.html |
Url | http://hl7.org/fhir/StructureMap/DataRequirement3to4 |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | DataRequirement3to4 |
Title | DataRequirement Transforms: R3 to R4 |
Experimental | False |
Realm | uv |
Authority | hl7 |
Description | DataRequirementTransformsR3toR4 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/DataRequirement3to4' /// name = 'DataRequirement3to4' /// title = 'DataRequirement Transforms: R3 to R4' /// status = 'active' uses "http://hl7.org/fhir/3.0/DataRequirement" alias DataRequirementR3 as source uses "http://hl7.org/fhir/4.0/DataRequirement" alias DataRequirement as target imports "http://hl7.org/fhir/StructureMap/*3to4" group DataRequirement(source src : DataRequirementR3, target tgt : DataRequirement) extends Element <<type+>> { src.type -> tgt.type; src.profile -> tgt.profile; src.mustSupport -> tgt.mustSupport; src.codeFilter as vs0 -> tgt.codeFilter as vt0 then codeFiter(vs0, vt0); src.dateFilter as vs0 -> tgt.dateFilter as vt0 then dateFilter(vs0, vt0); } group codeFiter(source src, target tgt) extends Element { src.path -> tgt.path; src.valueSet : string as vs -> tgt.valueSet = vs; src.valueSet : Reference as vs then { vs.referenced -> tgt.valueSet; }; src.valueCode as vs -> tgt.code as vt, vt.code = vs; src.valueCoding -> tgt.code; src.valueCodeableConcept as vs0 then { vs0.coding -> tgt.code; }; } group dateFilter(source src, target tgt) extends Element { src.path -> tgt.path; src.value : dateTime as vs -> tgt.value = create('dateTime') as vt then dateTime(vs, vt); src.value : Period as vs -> tgt.value = create('Period') as vt then Period(vs, vt); src.value : Duration as vs -> tgt.value = create('Duration') as vt then Duration(vs, vt); }
{
"resourceType" : "StructureMap",
"id" : "DataRequirement3to4",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/DataRequirement3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'DataRequirement3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'DataRequirement Transforms: R3 to R4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/DataRequirement<span style=\"color: navy\">" </span><b>alias </b>DataRequirementR3 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/4.0/DataRequirement<span style=\"color: navy\">" </span><b>alias </b>DataRequirement <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*3to4<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>DataRequirement<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>DataRequirementR3, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>DataRequirement<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.type<span style=\"color: navy\"><b> -> </b></span>tgt.type<span style=\"color: navy\">;</span>\r\n src.profile<span style=\"color: navy\"><b> -> </b></span>tgt.profile<span style=\"color: navy\">;</span>\r\n src.mustSupport<span style=\"color: navy\"><b> -> </b></span>tgt.mustSupport<span style=\"color: navy\">;</span>\r\n src.codeFilter<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.codeFilter<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>codeFiter<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.dateFilter<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.dateFilter<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>dateFilter<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>codeFiter<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>Element<span style=\"color: navy\"> {\r\n</span> src.path<span style=\"color: navy\"><b> -> </b></span>tgt.path<span style=\"color: navy\">;</span>\r\n src.valueSet<span style=\"color: navy\"> : </span>string<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.valueSet = <span style=\"color: maroon\">vs</span><span style=\"color: navy\">;</span>\r\n src.valueSet<span style=\"color: navy\"> : </span>Reference<b> as </b><span style=\"color: maroon\">vs</span><b> then</b><span style=\"color: navy\"> {\r\n</span> vs.referenced<span style=\"color: navy\"><b> -> </b></span>tgt.valueSet<span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n src.valueCode<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span> tgt.code<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> vt.code = <span style=\"color: maroon\">vs</span><span style=\"color: navy\">;</span>\r\n src.valueCoding<span style=\"color: navy\"><b> -> </b></span>tgt.code<span style=\"color: navy\">;</span>\r\n src.valueCodeableConcept<b> as </b><span style=\"color: maroon\">vs0</span><b> then</b><span style=\"color: navy\"> {\r\n</span> vs0.coding<span style=\"color: navy\"><b> -> </b></span>tgt.code<span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>dateFilter<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>Element<span style=\"color: navy\"> {\r\n</span> src.path<span style=\"color: navy\"><b> -> </b></span>tgt.path<span style=\"color: navy\">;</span>\r\n src.value<span style=\"color: navy\"> : </span>dateTime<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'dateTime'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>dateTime<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.value<span style=\"color: navy\"> : </span>Period<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Period'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>Period<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.value<span style=\"color: navy\"> : </span>Duration<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Duration'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>Duration<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 1,
"_valueInteger" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "draft",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/DataRequirement3to4",
"version" : "0.1.0",
"name" : "DataRequirement3to4",
"title" : "DataRequirement Transforms: R3 to R4",
"status" : "active",
"date" : "2024-02-22T03:16:50+00:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "DataRequirementTransformsR3toR4",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/3.0/DataRequirement",
"mode" : "source",
"alias" : "DataRequirementR3"
},
{
"url" : "http://hl7.org/fhir/4.0/DataRequirement",
"mode" : "target",
"alias" : "DataRequirement"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*3to4"
],
"group" : [
{
"name" : "DataRequirement",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "DataRequirementR3",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "DataRequirement",
"mode" : "target"
}
],
"rule" : [
{
"name" : "type",
"source" : [
{
"context" : "src",
"element" : "type",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "type",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "profile",
"source" : [
{
"context" : "src",
"element" : "profile",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "profile",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "mustSupport",
"source" : [
{
"context" : "src",
"element" : "mustSupport",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "mustSupport",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "codeFilter",
"source" : [
{
"context" : "src",
"element" : "codeFilter",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "codeFilter",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "codeFiter",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
},
{
"name" : "dateFilter",
"source" : [
{
"context" : "src",
"element" : "dateFilter",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "dateFilter",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "dateFilter",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
}
]
},
{
"name" : "codeFiter",
"extends" : "Element",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "path",
"source" : [
{
"context" : "src",
"element" : "path",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "path",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "valueSetString",
"source" : [
{
"context" : "src",
"type" : "string",
"element" : "valueSet",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "valueSet",
"transform" : "copy",
"parameter" : [
{
"valueId" : "vs"
}
]
}
]
},
{
"name" : "valueSetReference",
"source" : [
{
"context" : "src",
"type" : "Reference",
"element" : "valueSet",
"variable" : "vs"
}
],
"rule" : [
{
"name" : "referenced",
"source" : [
{
"context" : "vs",
"element" : "referenced",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "valueSet",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "valueCode",
"source" : [
{
"context" : "src",
"element" : "valueCode",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "code",
"variable" : "vt"
},
{
"context" : "vt",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueId" : "vs"
}
]
}
]
},
{
"name" : "valueCoding",
"source" : [
{
"context" : "src",
"element" : "valueCoding",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "code",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "valueCodeableConcept",
"source" : [
{
"context" : "src",
"element" : "valueCodeableConcept",
"variable" : "vs0"
}
],
"rule" : [
{
"name" : "coding",
"source" : [
{
"context" : "vs0",
"element" : "coding",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "code",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
},
{
"name" : "dateFilter",
"extends" : "Element",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "path",
"source" : [
{
"context" : "src",
"element" : "path",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "path",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "valueDateTime",
"source" : [
{
"context" : "src",
"type" : "dateTime",
"element" : "value",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"variable" : "vt",
"transform" : "create",
"parameter" : [
{
"valueString" : "dateTime"
}
]
}
],
"dependent" : [
{
"name" : "dateTime",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
},
{
"name" : "valuePeriod",
"source" : [
{
"context" : "src",
"type" : "Period",
"element" : "value",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"variable" : "vt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Period"
}
]
}
],
"dependent" : [
{
"name" : "Period",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
},
{
"name" : "valueDuration",
"source" : [
{
"context" : "src",
"type" : "Duration",
"element" : "value",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"variable" : "vt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Duration"
}
]
}
],
"dependent" : [
{
"name" : "Duration",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
}
]
}
]
}
XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.